﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreeSql.DataAnnotations;

namespace Model
{
    public class Bearings : ModelBase
    {
        private int _id;

        [Column(CanInsert = false)]
        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        private string _bearingNo;
        /// <summary>
        /// 轴承编号
        /// </summary>
        public string BearingNo
        {
            get { return _bearingNo; }
            set { _bearingNo = value; }
        }
        private int _totalProduct;

        public int TotalProduct
        {
            get { return _totalProduct; }
            set { _totalProduct = value; }
        }
        private float _oilTotal;
        /// <summary>
        /// 该型号已用总数
        /// </summary>
        public float OilTotal
        {
            get { return _oilTotal; }
            set { _oilTotal = value; }
        }
        private DateTime _timeStamp;
        /// <summary>
        /// 维护时间
        /// </summary>
        public DateTime TimeStamp
        {
            get { return _timeStamp; }
            set { _timeStamp = value; }
        }
        private float _oilNum;
        [Column(IsIgnore = true)]
        public float OilNum
        {
            get { return _oilNum; }
            set { _oilNum = value; }
        }

    }
}
